﻿using System;
using System.Windows.Forms;
using Ninject;

namespace PersonMgrApp
{
    static class Program
    {
        public static StandardKernel Kernel;

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            InitializeKernel();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(Kernel.Get<PersonMgrForm>());
        }

        private static void InitializeKernel()
        {
            Kernel = new StandardKernel(new PersonMgrNinjectModule());
        }
    }
}
